/**
 *
 */
package sh.t2.share.module.player.log;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "玩家创号日志表", dbAlias = "log", asyncType = AsyncType.INSERT)
public class PlayerCreateLog extends AbstractEntity {
    @Id(strategy = Strategy.AUTO)
    @Column(comment = "日志ID")
    private long id;
    @Column(name = "channel_id", comment = "渠道ID")
    private long channelId;
    @Column(name = "player_id", comment = "玩家ID")
    private long playerId;
    @Column(name = "open_id", comment = "账户ID")
    private String openId;
    @Column(comment = "玩家名称")
    private String nick;
    @Column(name = "born_time", comment = "创号时间", extra = "time")
    private long bornTime;
    @Column(comment = "创号IP")
    private String ip;
    @Column(name = "born_date", comment = "创号日期，格式yyyyMMdd")
    private int bornDate;
    @Column(name = "new_comer", comment = "是否新注册账号")
    private boolean newComer;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

	public long getChannelId() {
		return channelId;
	}

	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}

	public long getBornTime() {
		return bornTime;
	}

	public void setBornTime(long bornTime) {
		this.bornTime = bornTime;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

	public int getBornDate() {
		return bornDate;
	}

	public void setBornDate(int bornDate) {
		this.bornDate = bornDate;
	}

	public boolean isNewComer() {
		return newComer;
	}

	public void setNewComer(boolean newComer) {
		this.newComer = newComer;
	}

}
